const path = require('path')

module.exports = {
  mode: 'none',
  entry: {
    'jm-check-version.cjs': {
      import: './src/main.js',
      library: {
        type: 'commonjs2',
      },
    },
    'jm-check-version.esm': {
      import: './src/main.js',
      library: {
        type: 'module',
      }
    }
  },
  output: {
    path: path.resolve(__dirname, 'dist'),
    filename: '[name].js',
    clean: true,
  },
  experiments: {
    outputModule: true,
  },
}
